Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> p ~ ul { background: #ff0000; } </style> </head> <body> <div>A div element.</div> <ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> <p>The first paragraph.</p> <ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> <h2>Another list</h2> <ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> </body> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss3_gen_sibling by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:14:14 GMT --> </html>
Result:
Try it Yourself - © w3schools.com